#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/11/20 13:15
@desc
"""

# def testfunc():
#     try:
#         lst = [1,2,3,4]
#         g = [x for x in lst]
#     except Exception:
#         pass
#     return g
#
#
# d = testfunc()
# print(d)


# def test():
#     if value == 1:
#         a += 1
#     return a
#
#
# value = a = 1
# b = test()

# def test():
#     global a
#     if value == 1:
#         a += 1
#     return a
#
#
# value = a = 1
# b = test()


# def test():
#     a = 1
#     if value == 1:
#        a += 1
#     return a
#
# value = a = 1
# b = test()
# print(b)
# print(a)

# val = '山西晋泰瑞房地产开发有限公司 三居(2) 四居(1)'
# ss = val.split(' ')
# print(type(ss))
# print(len(ss))
# for x in ss:
#     print(x)

# import json
#
# s = "[07141A01, 1, 3, aas]"
#
# ss = json.loads(s)
#
# print(ss)
#

#
# import json
#
# str_list = "[11.23,23.34,KAN91]"
# list_list = json.loads(str_list)
# print(list_list)
# print(type(list_list))

# import ast
#
# str_list = "[11.23,23.34,KAN19KA]"
# list_list = ast.literal_eval(str_list)
# print(list_list)
# print(type(list_list))



str_list = "[11.23,23.34,KAN19KA]"
list_list = str_list.replace('[','').replace(']','')
print(list_list)
ll = list_list.split(',')
print(ll)
print(type(ll))
